home *** CD-ROM | disk | FTP | other *** search
- on checkSlidePiece hiddenSpriteNo, lastSpriteNo
- global SCARYSTART, PRINTLIST
- set SCARYSTART to 1
- set pieceWidth to 93
- set spriteNo to the clickOn
- set hiddenH to the locH of sprite hiddenSpriteNo
- set hiddenV to the locV of sprite hiddenSpriteNo
- set spriteH to the locH of sprite spriteNo
- set spriteV to the locV of sprite spriteNo
- if (hiddenH = spriteH) and (hiddenV = (spriteV + pieceWidth)) then
- slidePiece("V", 3, pieceWidth, spriteNo, hiddenSpriteNo)
- else
- if (hiddenH = spriteH) and (spriteV = (hiddenV + pieceWidth)) then
- slidePiece("V", -3, pieceWidth, spriteNo, hiddenSpriteNo)
- else
- if (spriteH = (hiddenH + pieceWidth)) and (hiddenV = spriteV) then
- slidePiece("H", -3, pieceWidth, spriteNo, hiddenSpriteNo)
- else
- if (hiddenH = (spriteH + pieceWidth)) and (hiddenV = spriteV) then
- slidePiece("H", 3, pieceWidth, spriteNo, hiddenSpriteNo)
- else
- beep()
- end if
- end if
- end if
- end if
- repeat with spriteNo = hiddenSpriteNo to lastSpriteNo
- set test to the name of member the memberNum of sprite spriteNo
- if word 1 of test <> the locH of sprite spriteNo then
- exit
- end if
- if word 2 of test <> the locV of sprite spriteNo then
- exit
- end if
- end repeat
- set the blend of sprite hiddenSpriteNo to 100
- put "scary spice print" & RETURN after PRINTLIST
- congratulations()
- returnToMainGame(the frameLabel)
- end
-
- on slidePiece HorV, offset, pieceWidth, spriteNo, hiddenSpriteNo
- set the locH of sprite hiddenSpriteNo to the locH of sprite spriteNo
- set the locV of sprite hiddenSpriteNo to the locV of sprite spriteNo
- puppetSound("scary move")
- repeat with x = 1 to pieceWidth / 3
- if HorV = "H" then
- set the locH of sprite spriteNo to the locH of sprite spriteNo + offset
- else
- set the locV of sprite spriteNo to the locV of sprite spriteNo + offset
- end if
- updateStage()
- end repeat
- end
-